import request from '@/utils/request'

// 查询开奖记录列表
export function listPrizeRecord(query) {
  return request({
    url: '/system/prizeRecord/list',
    method: 'get',
    params: query
  })
}

// 查询开奖记录详细
export function getPrizeRecord(recordId) {
  return request({
    url: '/system/prizeRecord/' + recordId,
    method: 'get'
  })
}

// 新增开奖记录
export function addPrizeRecord(data) {
  return request({
    url: '/system/prizeRecord',
    method: 'post',
    data: data
  })
}

// 修改开奖记录
export function updatePrizeRecord(data) {
  return request({
    url: '/system/prizeRecord',
    method: 'put',
    data: data
  })
}

// 删除开奖记录
export function delPrizeRecord(recordId) {
  return request({
    url: '/system/prizeRecord/' + recordId,
    method: 'delete'
  })
}

// 导出开奖记录
export function exportPrizeRecord(query) {
  return request({
    url: '/system/prizeRecord/export',
    method: 'get',
    params: query
  })
}